Skip to content

Instantly share code, notes, and snippets.

@johnbean393
johnbean393 / veo3.1-generate.py
Last active November 28, 2025 21:04
A Python script to generate and extend videos with Veo 3.1
import time
import os
import sys
import subprocess
import platform
import mimetypes
import base64
from google import genai
from google.genai import types
from tkinter import Tk, filedialog
@atoponce
atoponce / unicode-space.zsh
Last active November 28, 2025 21:03
Print "white space" of various types to see how they look and behave in different terminal emulators for password generators.
#!/usr/bin/env zsh
#
# Released to the public domain
#
# - No C0 control codes, except:
# - \u0009: tab character
# - \u001C: file separator (largest)
# - \u001D: group separator
# - \u001E: record separator
# - \u001F: unit separator
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active November 28, 2025 21:02
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@dideler
dideler / bot.rb
Last active November 28, 2025 21:01
Sending a notification message to Telegram using its HTTP API via cURL
# Use this script to test that your Telegram bot works.
#
# Install the dependency
#
# $ gem install telegram_bot
#
# Run the bot
#
# $ ruby bot.rb
#
@alexgreenland
alexgreenland / bad-deps.txt
Last active November 28, 2025 20:58
[Updated 27 Nov 2025 00:21 UTC] Deep scan for bad NPM packages nested across projects - DFIR for Shai-Hulud cyberattack, Sep-Nov 2025
@ahmedhfarag/ngx-perfect-scrollbar
@ahmedhfarag/ngx-virtual-scroller
another-shai
@art-ws/common
@art-ws/config-eslint
@art-ws/config-ts
@art-ws/db-context
@art-ws/di-node
@art-ws/di
@art-ws/eslint
@FlaShG
FlaShG / CanvasPositioningExtensions.cs
Last active November 28, 2025 20:57
A small Unity helper class to convert viewport, screen or world positions to canvas space.
using UnityEngine;
/// <summary>
/// Small helper class to convert viewport, screen or world positions to canvas space.
/// Only works with screen space canvases.
/// </summary>
/// <example>
/// <code>
/// objectOnCanvasRectTransform.anchoredPosition = specificCanvas.WorldToCanvasPoint(worldspaceTransform.position);
/// </code>
@DabbyNdubisi
DabbyNdubisi / NavigationAllowedDismissalGesturesModifier.swift
Last active November 28, 2025 20:56
Control Interactive Dismissal of Navigation Zoom Transition SwiftUI
import SwiftUI
import UIKit
import Foundation
// MARK: - AllowedNavigationDismissalGestures
public struct AllowedNavigationDismissalGestures: OptionSet, Sendable {
public let rawValue: Int
public init(rawValue: Int) {
@wikrie
wikrie / fritzbox-cert-update.sh
Last active November 28, 2025 20:42
Fritzbox Fritz!Box AVM SSL Letsencrypt automatically update
#!/bin/bash
## this little Gist is for Copy the Letsencrypt Cert from an Linux machine (e.g. Raspberry PI or Synology NAS)
## to the router (Fritzbox).
## It is usefull to be able to speak to the Router over DDNS without any Cert issue in the Browser.
## thanks to https://gist.github.com/mahowi for the perfect Idea
## put it in /etc/letsencrypt/renewal-hooks/post so it gets run after every renewal.
## since Fritz OS 7.25 it is needed to select a Username, from a security point of view
## it is always a good idea to have a non default user name. And as normaly a Fritz Box
## is connected to the Internet, the prefered method should be WITH Username.
@rameerez
rameerez / rails-production-setup.sh
Last active November 28, 2025 20:39
Rails Production Server Setup - Set up a new Ubuntu Server 24.04 LTS to run a Rails 7 app, using Capistrano for deployment
#!/bin/bash
# This script takes a clean Ubuntu Server 24.04 LTS AMI and installs and configures
# everything needed to deploy a Rails 7 app to it. The resulting state is a secure,
# production-ready instance.
set -euo pipefail
# --- AESTHETICS ---
@alexpyattaev
alexpyattaev / master_updater.fish
Created November 28, 2025 20:33
Updates master of your local clone of an upstream repo.
#!/usr/bin/fish
# Update this to what you need
set repos /home/$USER/repo1 /home/$USER/repo2
for repo in $repos
cd $repo
git fetch upstream